package com.axin.blog.mapper;

import com.axin.blog.api.domain.BlogCategory;
import com.axin.blog.api.domain.BlogTag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 博客标签 数据层
 *
 * @Author axin
 * @Date 2021/10/29 19:49
 */
public interface BlogTagMapper extends BaseMapper<BlogTag> {

    /**
     * 根据条件分页查询标签
     *
     * @param page
     * @param tag
     * @return
     */
    Page<BlogTag> selectPageBlogTagList(@Param("page") Page<BlogTag> page, @Param("tag") BlogTag tag);

    /**
     * 根据条件查询标签列表
     *
     * @param tag
     * @return
     */
    List<BlogTag> selectBlogTagList(@Param("tag") BlogTag tag);
}
